<template>
  <div class="wallet_bg" :style="bg">
    <div class="wallet_top">
      <van-nav-bar title="我的钱包" left-arrow @click-left="onClickLeft" />
      <img src="./images/wallet.svg" alt="" class="wallet_svg" />
      <p class="wallet_yu">我的余额</p>
      <p class="wallet_qian">￥0.00</p>
      <div class="wallet_cun">充值</div>
      <div class="wallet_ti">提现</div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      bg: {
        backgroundImage: "url(" + require("./images/lantian.png") + ")",
        backgroundRepeat: "no-repeat",
        backgroundSize: "100% 100%",
      },
    };
  },
  methods: {
    onClickLeft() {
      this.$router.replace("/profile");
    },
  },
};
</script>

<style>
.wallet_bg {
  width: 100%;
  height: 100%;
}
.wallet_top {
  width: 100%;
  height: 50px;
  line-height: 50px;
}
.wallet_fig {
  height: 30px;
  position: relative;
  height: 30px;
  right: 9%;
  margin-left: 50%;
}
.wallet_svg {
  margin: 25% 35% 0 35%;
  width: 30%;
}
.wallet_qian {
  text-align: center;
  font-size: 34px;
}
.wallet_yu {
  text-align: center;
}
.wallet_cun {
  width: 70%;
  height: 40px;
  margin: 1% auto;
  line-height: 40px;
  text-align: center;
  border: 1px solid black;
  border-radius: 20px;
  background-color: aqua;
}
.wallet_ti {
  width: 70%;
  height: 40px;
  margin: 1% auto;
  line-height: 40px;
  text-align: center;
  border: 1px solid black;
  border-radius: 20px;
  background-color: #fff;
}
.van-nav-bar {
  background-color: #409eff !important;
}
</style>
